/*
 * filter.h
 *
 *  Created on: 27 Jan 2014
 *      Author: bohni
 */

#ifndef FILTER_H_
#define FILTER_H_

#include <inttypes.h>
#include <avr/eeprom.h>

#include "Scheduler.h"
#include "Mathe.h"
#include "UART.h"
#include "config.h"

struct filter_out {
	float angle;
	float rate;
	float acceleration;  // m/s
};

extern struct filter_out x;
extern struct filter_out y;
extern struct filter_out z;

void filter_init();

void filter_update();

void filter_coefficent_update();

#endif /* FILTER_H_ */
